#pragma once
#include "shape.h"
#include <iostream>
#include "CollisionDetector.h"
using namespace std;

class MRect :public Shape
{
	friend class CollisionDetector;
private:
	pair<float,float> p1,p2;
	float w,  h;
public:
	MRect(float x1,float y1,float x2,float y2);
	~MRect(void);
	void drawShape();
	void fallDown(float t, list<Shape*> *l1 );
	void shift(float x, float y);
	float getMinX() const;
	float getMaxX() const;
};

